const goodColumns = [
  {
    title: "序号",
    dataIndex: "index",
    key: "index",
    customRender: (text, record, index) => `${index + 1}`,
    align: "center",
  },
  {
    title: "出库单号",
    dataIndex: "outStoreNum",
    key: "outStoreNum",
    align: "center",
  },
  {
    title: "备料单号",
    dataIndex: "materialPrepareNum",
    key: "materialPrepareNum",
    align: "center",
  },
  {
    title: "加工单号",
    dataIndex: "workSheetNum",
    key: "workSheetNum",
    align: "center",
  },
  {
    title: "商品编号",
    dataIndex: "goodsCode",
    key: "goodsCode",
    align: "center",
  },
  {
    title: "出库总数",
    dataIndex: "outStoreCount",
    key: "outStoreCount",
    align: "center",
  },

  {
    title: "机台",
    dataIndex: "equipmentName",
    key: "equipmentName",
    align: "center",
  },
  {
    title: "仓库经办人",
    dataIndex: "materialPrepareUsername",
    key: "materialPrepareUsername ",
    align: "center",
  },
  {
    title: "签收人",
    dataIndex: "receiveMaterialUsername",
    key: "receiveMaterialUsername",
    align: "center",
  },
  {
    title: "操作",
    width: 300,
    dataIndex: "action",
    align: "center",
    scopedSlots: { customRender: "action" },
  },
];

const columns = [
  {
    title: "序号",
    dataIndex: "index",
    key: "index",
    customRender: (text, record, index) => `${index + 1}`,
    align: "center",
  },
  {
    title: "商品编号",
    dataIndex: "goodsCode",
    key: "goodsCode",
    align: "center",
  },
  {
    title: "商品名称",
    dataIndex: "goodsName",
    key: "goodsName",
    align: "center",
  },
  {
    title: "商品规格",
    key: "goodsSpecification",
    dataIndex: "goodsSpecification",
    align: "center",
  },
  {
    title: "加工单数量",
    key: "planDemandQuantityNum",
    dataIndex: "planDemandQuantityNum",
    align: "center",
  },

  {
    title: "已备料数量",
    key: "totalMaterialPrepareCount",
    dataIndex: "totalMaterialPrepareCount",
    align: "center",
  },
  {
    title: "需要备料数量",
    key: "needMaterialCount",
    dataIndex: "needMaterialCount",
    align: "center",
  },
  {
    title: "当前出库单数量",
    key: "outStoreCount",
    dataIndex: "outStoreCount",
    align: "center",
  },
];

const wareDesColumns = [
  {
    title: "序号",
    dataIndex: "index",
    key: "index",
    customRender: (text, record, index) => `${index + 1}`,
    align: "center",
  },
  {
    title: "商品编号",
    dataIndex: "goodsCode",
    key: "goodsCode",
    align: "center",
  },
  {
    title: "商品名称",
    dataIndex: "goodsName",
    key: "goodsName",
    align: "center",
  },
  {
    title: "库位",
    key: "shelfName",
    dataIndex: "shelfName",
    align: "center",
  },
  {
    title: "领料数量",
    key: "materialPrepareCount",
    dataIndex: "materialPrepareCount",
    align: "center",
    scopedSlots: { customRender: "materialPrepareCount" },
  },
];
export { goodColumns, columns, wareDesColumns };
